package com.tpshion.chat.domain.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;

/**
 * @Description: 聊天消息模型
 * @Author: tpshion
 * @Date: 2020/5/3 10:51
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChatModel implements Serializable {

    /**
     * 发送消息的用户
     */
    private String fromUserId;

    private String fromUserName;

    private String fromUserImg;

    /**
     * 接收消息的用户
     */
    private String toUserId;

    private String toUserName;

    private String toUserImg;

    /**
     * 消息内容
     */
    private String msg;

    /**
     * 消息是否已读
     */
    private Boolean read = false;

    /**
     * 时间戳
     */
    private Long time = System.currentTimeMillis();

}
